import { createSlice } from '@reduxjs/toolkit'

const mainSlice = createSlice({
  name:'main',
  initialState:{
    headerConfig:{
      isFixed:false,
      isHome:false,
    }
  },
  reducers:{
    changeHeaderConfigAction(state,{payload}){
      state.headerConfig = payload;
    }
  }
})

// 导出action
export const {changeHeaderConfigAction} = mainSlice.actions;
export default  mainSlice.reducer
